//数据层
var mongoose = require("mongoose");
var db = require('./db');
var userModel = db.model("user",new mongoose.Schema({
    username:{
        type: String,
        required:true,
    },
    account:{
        type:String,
        required:true,
    },
    password:{
        type:String,
        required:true
    },
    gender:{
        type:Number,
        default:0
    },
    birthday:{
        type: String,
        required:true
    }
}),"user");

module.exports = userModel;